.class final Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;
.super Lcom/millennialmedia/android/MMBroadcastReceiver;
.source "MillennialAdaptor.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1a
    name = "MillennialListener"
.end annotation


# instance fields
.field private final mAdaptor:Ljava/lang/ref/Reference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/Reference",
            "<",
            "Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;",
            ">;"
        }
    .end annotation
.end field

.field private mFiredDidLoad:Z

.field private final mLogTag:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;Ljava/lang/String;)V
    .locals 1
    .parameter "adaptor"
    .parameter "logTag"

    .prologue
    .line 92
    invoke-direct {p0}, Lcom/millennialmedia/android/MMBroadcastReceiver;-><init>()V

    .line 93
    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;->mAdaptor:Ljava/lang/ref/Reference;

    .line 94
    iput-object p2, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;->mLogTag:Ljava/lang/String;

    .line 95
    return-void
.end method


# virtual methods
.method public displayStarted(Lcom/millennialmedia/android/MMAd;)V
    .locals 0
    .parameter "ad"

    .prologue
    .line 189
    invoke-super {p0, p1}, Lcom/millennialmedia/android/MMBroadcastReceiver;->displayStarted(Lcom/millennialmedia/android/MMAd;)V

    .line 190
    return-void
.end method

.method public fetchFailure(Lcom/millennialmedia/android/MMAd;)V
    .locals 5
    .parameter "ad"

    .prologue
    .line 177
    invoke-super {p0, p1}, Lcom/millennialmedia/android/MMBroadcastReceiver;->fetchFailure(Lcom/millennialmedia/android/MMAd;)V

    .line 178
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;->mAdaptor:Ljava/lang/ref/Reference;

    invoke-virtual {v1}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;

    .line 179
    .local v0, adaptor:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->isStopped()Z

    move-result v1

    if-nez v1, :cond_0

    .line 180
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;->mLogTag:Ljava/lang/String;

    const-string v3, "Failed to fetch Millennial..."

    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 181
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->stop()V

    .line 182
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v1

    const-string v2, "millennial"

    instance-of v3, p1, Lcom/millennialmedia/android/MMInterstitial;

    const-string v4, "Failed to fetch"

    invoke-interface {v1, v2, v3, v4}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->failedToLoad(Ljava/lang/String;ZLjava/lang/String;)V

    .line 185
    :cond_0
    return-void
.end method

.method public fetchFinishedCaching(Lcom/millennialmedia/android/MMAd;)V
    .locals 7
    .parameter "ad"

    .prologue
    const/4 v3, 0x0

    .line 158
    invoke-super {p0, p1}, Lcom/millennialmedia/android/MMBroadcastReceiver;->fetchFinishedCaching(Lcom/millennialmedia/android/MMAd;)V

    .line 159
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;->mAdaptor:Ljava/lang/ref/Reference;

    invoke-virtual {v2}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;

    .line 160
    .local v0, adaptor:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->isStopped()Z

    move-result v2

    if-nez v2, :cond_0

    .line 161
    sget-object v2, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;->mLogTag:Ljava/lang/String;

    const-string v5, "Fetch finished caching Millennial..."

    new-array v6, v3, [Ljava/lang/Object;

    invoke-virtual {v2, v4, v5, v6}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 162
    instance-of v2, p1, Lcom/millennialmedia/android/MMInterstitial;

    if-eqz v2, :cond_1

    move-object v2, p1

    :goto_0
    check-cast v2, Lcom/millennialmedia/android/MMInterstitial;

    move-object v1, v2

    check-cast v1, Lcom/millennialmedia/android/MMInterstitial;

    .line 163
    .local v1, interstitial:Lcom/millennialmedia/android/MMInterstitial;
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v4

    const-string v5, "millennial"

    if-eqz v1, :cond_2

    const/4 v2, 0x1

    :goto_1
    invoke-interface {v4, v5, v2}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->didLoad(Ljava/lang/String;Z)V

    .line 164
    if-eqz v1, :cond_0

    .line 165
    iget-boolean v2, v0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mIsPrecacheRequest:Z

    if-eqz v2, :cond_3

    .line 166
    iput-object v1, v0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->mInterstitialCachedView:Lcom/millennialmedia/android/MMInterstitial;

    .line 173
    .end local v1           #interstitial:Lcom/millennialmedia/android/MMInterstitial;
    :cond_0
    :goto_2
    return-void

    .line 162
    :cond_1
    const/4 v2, 0x0

    goto :goto_0

    .restart local v1       #interstitial:Lcom/millennialmedia/android/MMInterstitial;
    :cond_2
    move v2, v3

    .line 163
    goto :goto_1

    .line 168
    :cond_3
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v2

    sget-object v3, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->FULLSCREEN_INFO:Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    invoke-interface {v2, v3}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->shownFullscreen(Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;)V

    .line 169
    invoke-virtual {v1}, Lcom/millennialmedia/android/MMInterstitial;->display()Z

    goto :goto_2
.end method

.method public fetchStartedCaching(Lcom/millennialmedia/android/MMAd;)V
    .locals 0
    .parameter "ad"

    .prologue
    .line 153
    invoke-super {p0, p1}, Lcom/millennialmedia/android/MMBroadcastReceiver;->fetchStartedCaching(Lcom/millennialmedia/android/MMAd;)V

    .line 154
    return-void
.end method

.method public getAdFailure(Lcom/millennialmedia/android/MMAd;)V
    .locals 5
    .parameter "ad"

    .prologue
    .line 121
    invoke-super {p0, p1}, Lcom/millennialmedia/android/MMBroadcastReceiver;->getAdFailure(Lcom/millennialmedia/android/MMAd;)V

    .line 122
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;->mAdaptor:Ljava/lang/ref/Reference;

    invoke-virtual {v1}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;

    .line 123
    .local v0, adaptor:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->isStopped()Z

    move-result v1

    if-nez v1, :cond_0

    .line 124
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;->mLogTag:Ljava/lang/String;

    const-string v3, "Failed to receive Millennial..."

    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 125
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->stop()V

    .line 126
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v1

    const-string v2, "millennial"

    instance-of v3, p1, Lcom/millennialmedia/android/MMInterstitial;

    const-string v4, ""

    invoke-interface {v1, v2, v3, v4}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->failedToLoad(Ljava/lang/String;ZLjava/lang/String;)V

    .line 129
    :cond_0
    return-void
.end method

.method public getAdSuccess(Lcom/millennialmedia/android/MMAd;)V
    .locals 4
    .parameter "ad"

    .prologue
    .line 108
    invoke-super {p0, p1}, Lcom/millennialmedia/android/MMBroadcastReceiver;->getAdSuccess(Lcom/millennialmedia/android/MMAd;)V

    .line 109
    iget-boolean v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;->mFiredDidLoad:Z

    if-eqz v1, :cond_1

    .line 117
    :cond_0
    :goto_0
    return-void

    .line 112
    :cond_1
    const/4 v1, 0x1

    iput-boolean v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;->mFiredDidLoad:Z

    .line 113
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;->mAdaptor:Ljava/lang/ref/Reference;

    invoke-virtual {v1}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;

    .line 114
    .local v0, adaptor:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->isStopped()Z

    move-result v1

    if-nez v1, :cond_0

    .line 115
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v1

    const-string v2, "millennial"

    instance-of v3, p1, Lcom/millennialmedia/android/MMInterstitial;

    invoke-interface {v1, v2, v3}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->didLoad(Ljava/lang/String;Z)V

    goto :goto_0
.end method

.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 5
    .parameter "context"
    .parameter "intent"

    .prologue
    .line 99
    invoke-super {p0, p1, p2}, Lcom/millennialmedia/android/MMBroadcastReceiver;->onReceive(Landroid/content/Context;Landroid/content/Intent;)V

    .line 100
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;->mAdaptor:Ljava/lang/ref/Reference;

    invoke-virtual {v1}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;

    .line 101
    .local v0, adaptor:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->isStopped()Z

    move-result v1

    if-nez v1, :cond_0

    .line 102
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;->mLogTag:Ljava/lang/String;

    const-string v3, "Receive Millennial ad..."

    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 104
    :cond_0
    return-void
.end method

.method public overlayClosed(Lcom/millennialmedia/android/MMAd;)V
    .locals 3
    .parameter "ad"

    .prologue
    .line 143
    invoke-super {p0, p1}, Lcom/millennialmedia/android/MMBroadcastReceiver;->overlayClosed(Lcom/millennialmedia/android/MMAd;)V

    .line 144
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor$MillennialListener;->mAdaptor:Ljava/lang/ref/Reference;

    invoke-virtual {v1}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;

    .line 145
    .local v0, adaptor:Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->isStopped()Z

    move-result v1

    if-nez v1, :cond_0

    .line 146
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v1

    sget-object v2, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->FULLSCREEN_INFO:Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    invoke-interface {v1, v2}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->dismissedFullscreen(Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;)V

    .line 147
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/millennial/MillennialAdaptor;->stop()V

    .line 149
    :cond_0
    return-void
.end method

.method public overlayOpened(Lcom/millennialmedia/android/MMAd;)V
    .locals 0
    .parameter "ad"

    .prologue
    .line 133
    invoke-super {p0, p1}, Lcom/millennialmedia/android/MMBroadcastReceiver;->overlayOpened(Lcom/millennialmedia/android/MMAd;)V

    .line 139
    return-void
.end method

.method public overlayTap(Lcom/millennialmedia/android/MMAd;)V
    .locals 0
    .parameter "ad"

    .prologue
    .line 194
    invoke-super {p0, p1}, Lcom/millennialmedia/android/MMBroadcastReceiver;->overlayTap(Lcom/millennialmedia/android/MMAd;)V

    .line 204
    return-void
.end method
